class CreateTaggings < ActiveRecord::Migration
  def self.up
    create_table :taggings do |t|
      t.references            :tag
      t.string                :tag_from

      t.integer               :taggable_id
      t.string                :taggable_type

      t.timestamps
    end

    add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
    add_index "taggings", ["taggable_id"], :name => "index_taggings_on_taggable_id"

  end

  def self.down
    drop_table :taggings
  end
end
